import request from '@/utils/request'

// 获取订单统计列表
export function statisticsOrder(data) {
    return request({
        url: '/admin/order/item/paging',
        method: 'post',
        data,
        showLoading: true
    })
}

// 获取课程学习统计
export function getCourseStatistics(data) {
    return request({
        url: '/admin/customer/user/statistic/course',
        method: 'post',
        data,
        showLoading: true
    })
}

// 获取章节学习统计
export function getChapterStatistics(data) {
    return request({
        url: '/admin/customer/user/statistic/listen',
        method: 'post',
        data,
        showLoading: true
    })
}

// 导出学习统计数据
export function exportStatistics(data) {
    return request({
        url: '/admin/customer/user/statistic/export',
        method: 'post',
        data,
        responseType: 'blob',
        showLoading: true
    })
}